package com.example.danci.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.danci.model.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    boolean updateByPhone(@Param("id") int id, @Param("user_phone") String user_phone);
    boolean updateByImg(@Param("id") int id, @Param("user_img") byte[] user_img);
    boolean updateByPassword(@Param("id") int id, @Param("password") String password);
    boolean updateByUsername(@Param("id") int id, @Param("username") String username);
}
